package com.heima.api;

import com.heima.model.behavior.dto.BehaviorDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @date 2024/8/22 15:06
 * @Author JinCc
 * @Description TODO
 * @Version 1.0
 */
@FeignClient(value = "leadnews-behavior")
public interface LikesBehaviorClient {
    /**
     * 查询文章喜欢状态
     */
    @RequestMapping("/api/v1/article_like/")
    public String likeArticle(@RequestBody BehaviorDto dto);

    @RequestMapping("/api/v1/un_article_like")
    public String unLikeArticle(@RequestBody BehaviorDto dto);
}
